package creationPattern.Builder.Builder_01.builder;

import creationPattern.Builder.Builder_01.product.Bike;

/**
 * 具体建造者 - 摩拜单车建造者
 */
public class MobikeBuilder extends Builder{
    @Override
    public void buildFrame() {
        System.out.println("制作车架 - 摩拜单车");
        mBike.setFrame("摩拜车架");
    }

    @Override
    public void buildSeat() {
        System.out.println("制作车座 - 摩拜单车");
        mBike.setSeat("摩拜车座");
    }

    @Override
    public Bike createBike() {
        return mBike;
    }
}
